import { $axios } from '@/utils/http';

// 获取库存记录表
export async function getStockList(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/stock/getStockList',
    method: 'GET',
    params,
  });
}

// 新增入库表
export async function addStocked(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/stock/addStocked',
    method: 'POST',
    params,
  });
}

// 凭借商品id查找
export async function selectByGoodsid(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/stock/selectByGoodsid',
    method: 'GET',
    params,
  });
}
